/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package assign2;


/**
 *
 * @author martyastiadi
 */
public class Main {


    /**
     * @param args the command line arguments
     */
//    public void run() {
    public static void main(String[] args) {
        
//        NewJPanel NewJPanel =  new NewJPanel();
//        jp.r

        Runnable listGUI = new ListGUI();
        Thread myThread = new Thread(listGUI);
        myThread.start();

        Runnable server = new Server();
        Thread serverThread = new Thread(server);
        serverThread.start();


//        try {
//            while (MyServer.getLocalPort() == 0) {
//                Thread.sleep(500);
//            }
//        } catch (InterruptedException e) {
//            System.out.println("Sleep Exit");
//            System.exit(1);
//        }
//        listGUI.displayServerPort(MyServer.getLocalPort());
//        listGUI.setMyServer();

        
//        System.out.println("Testing");

    }

    public void run() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    



    }
      

